package com.coolwen.springmvc.dao;

import java.util.List;

/**
 * @author CoolWen
 * @version 2018-10-12 10:34
 */
public interface IBaseDao<T> {
    public void add(T t);

    public void delete(int id);

    public void update(T t);

    public T load(int id);

    public List<T> list(String hql, Object[] args);

    public List<T> list(String hql);

    public List<T> list(String hql, Object arg);

}
